package com.qfedu.yanglao20admin.advertising.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qfedu.yanglao20.entity.advertising.AdvertisingContent;
import com.qfedu.yanglao20.entity.advertising.AdvertisingType;
import com.qfedu.yanglao20admin.advertising.param.AdvertisingContenParam;
import com.qfedu.yanglao20admin.advertising.vo.AdvertisingContentVO;

import java.util.List;

/**
 * 广告内容信息
 */
public interface AdvertisingContentDao extends BaseMapper<AdvertisingContent> {
    /**
     * 分页查询广告内容信息
     * @param param
     * @return
     */
    List<AdvertisingContentVO> selectList(AdvertisingContenParam param);

    /**
     * 通过类型名称查询广告类型信息
     * @param typeName
     * @return
     */
    AdvertisingType selectByTitle(String typeName);

    /**
     * 通过id查询广告内容信息
     * @param id
     * @return
     */
    AdvertisingContentVO selectById(Integer id);


}
